package leetcode.violence;


public class printAllSubsquence {
    public static void main(String[] args) {
        String string= "abc";
        char[] chars = string.toCharArray();
        process(chars,0);
    }
    public static void process(char[] chars,int i){
        if (chars.length == i){
            System.out.println(String.valueOf(chars));
            return;
        }
        process(chars,i+1);
        char tem = chars[i];
        chars[i] = 0;
        process(chars,i+1);
        chars[i] = tem;
    }
}
